from django.shortcuts import render
from django.http import HttpResponse
from models import *
# Create your views here.


def index(request):
    list = Roster.objects.all()
    context = {'mlist': list}
    # context = {'title':'Hello world'}
    return render(request, 'classMembers/index.html',context)


# def detail(request,id):
#     list = Roster.objects.get(id=id)
#     context = {'mlist':list}
#     return render(request,'classMembers/detail.html',context)

def detail(request, id):
    list =Roster.objects.get(id=id)
    context = {'mber':list}
    return render(request,'classMembers/detail.html',context)